package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;


/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class CruReviews extends Model implements IValidator {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2512871279544643242L;
	// Fields    
	private Long id; 
	private Long prjJfId; 
	private String reviewId; 
	private String reviewName; 
	private Long prjCruId; 
	private String prjCruKey; 
	private String status; 
		
	//default constructor
    public CruReviews() {
    	super();
    }
    
    // Property accessors
	public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
    	this.id = id;
    }
    
	public Long getPrjJfId() {
        return this.prjJfId;
    }
    
    public void setPrjJfId(Long prjJfId) {
    	this.firePropertyChange("prjJfId", this.prjJfId, prjJfId);
    	this.prjJfId = prjJfId;
    }
    
	public String getReviewId() {
        return this.reviewId;
    }
    
    public void setReviewId(String reviewId) {
    	this.firePropertyChange("reviewId", this.reviewId, reviewId);
    	this.reviewId = reviewId;
    }
    
	public String getReviewName() {
        return this.reviewName;
    }
    
    public void setReviewName(String reviewName) {
    	this.firePropertyChange("reviewName", this.reviewName, reviewName);
    	this.reviewName = reviewName;
    }
    
	public Long getPrjCruId() {
        return this.prjCruId;
    }
    
    public void setPrjCruId(Long prjCruId) {
    	this.firePropertyChange("prjCruId", this.prjCruId, prjCruId);
    	this.prjCruId = prjCruId;
    }
    
	public String getPrjCruKey() {
        return this.prjCruKey;
    }
    
    public void setPrjCruKey(String prjCruKey) {
    	this.firePropertyChange("prjCruKey", this.prjCruKey, prjCruKey);
    	this.prjCruKey = prjCruKey;
    }
    
	public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
    	this.firePropertyChange("status", this.status, status);
    	this.status = status;
    }
    
   	public boolean validate(Object arg0) {
		//CruReviews cruReviews = (CruReviews)arg0;
		//Validation.required("cruReviews.id",cruReviews.getId());
		return true;
	}
}